﻿<Serializable()> _
Public Class EchoExtension
    Implements IExtension


    <Light.Server.SecurityRole(RoleName:="Registered Users")> _
    Public Function Echo(ByVal Input As String) As String
        Return Input
    End Function

    <Light.Server.SecurityRole(RoleName:="")> _
    Public Function EchoAnon(ByVal Input As String) As String
        Return Input
    End Function

    Public ReadOnly Property AssemblyName As String Implements IExtension.AssemblyName
        Get
            Return Me.GetType().Assembly.FullName
        End Get
    End Property


    Public ReadOnly Property ExtensionID As System.Guid Implements IExtension.ExtensionID
        Get
            Return New Guid("957E0662-2EAA-4C3F-8650-2605F6CCBAD1")
        End Get
    End Property

    Private tName As String
    Public ReadOnly Property TypeName As String Implements IExtension.TypeName
        Get
            Return Me.GetType().FullName
        End Get
    End Property


    Private uInfo As DotNetNuke.Entities.Users.UserInfo
    Public Property UserInfo() As DotNetNuke.Entities.Users.UserInfo Implements IExtension.UserInfo
        Get
            Return uInfo
        End Get
        Set(ByVal value As DotNetNuke.Entities.Users.UserInfo)
            uInfo = value
        End Set
    End Property

End Class
